#include"vector.h"

void test_1()
{
    sbh::vector<int> v1;
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);

    v1.print();
}


void test_2()
{
    sbh::vector<int> v1;
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);
    v1.push_back(1);
    sbh::vector<int> v2(v1);

    v1.print();
    v2.print();
}

void test_3()
{
    sbh::vector<int> v1;
    v1.push_back(1);
    v1.push_back(2);
    v1.push_back(3);
    v1.push_back(4);
    v1.push_back(5);
    sbh::vector<int> v2;
    v2 = v1;

    v1.print();
    v2.print();
}

void test_4()
{
    sbh::vector<int> v1;
    v1.push_back(1);
    v1.push_back(2);
    v1.push_back(3);
    v1.push_back(4);
    v1.push_back(5);
    v1.push_back(6);

    v1.print();

    v1.erase(v1.begin());
    v1.erase(v1.begin()+1);
    v1.erase(v1.begin()+2);

    v1.print();
}

void test_5()
{
    sbh::vector<int> v1;
    v1.push_back(1);
    v1.push_back(2);
    v1.push_back(3);
    v1.push_back(4);
    v1.push_back(5);
    sbh::vector<int> v2(v1.begin(), v1.end());

    v1.print();
    v2.print();
}

int main()
{
    test_4();

	return 0;
}